
module.exports = (sequelize, Types) => {
    const Prog = sequelize.define('prog', {
        id: {
            type: Types.STRING(50),
            primaryKey: true
        },
        name: Types.STRING(80),
        img: Types.STRING(200),
        url: Types.STRING(200),
        txt: Types.STRING(100),
    }, {
        tableName: 'prog',
        timestamps: false,//禁止seq自动添加createAt,updatedAt
    });
    Prog.sync();
    return Prog;
};